<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS3动画2</title>
    <style>
        .box{
            width: 30px;
            height: 30px;
            background-color: pink;
            /*自定义动画的名字*/
            animation-name: change;
            /*动画的播放时间*/
            animation-duration: 2s;
            /*动画结束后的状态*/
            animation-fill-mode: forwards;
            /*无限次播放*/
            animation-iteration-count: infinite;
            /*动画延时执行*/
            /*animation-delay: 2s;*/
            /*动画暂停*/
            /*animation-play-state: paused;*/

            /*动画反向播放*/
            animation-direction: alternate;

            /*动画速度*/
            animation-timing-function: ease;
        }

        @keyframes change {
            0%{

            }

            100%{
                width: 100px;
                height: 100px;
            }
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>